import { createStore } from "vuex";

const store= createStore({
    state: {
        isRushOut: localStorage.getItem('isRushOut') ? localStorage.getItem('isRushOut'):'出',
    },
    mutations: {
        changeIsRushOut(state, isRushOut) {
            if (isRushOut == '出'){isRushOut = '入'} else {isRushOut = '出'}
            state.isRushOut = isRushOut;
            localStorage.setItem('isRushOut', isRushOut)
        },
    }
});

export default store;